package com.zy.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zy.system.mapper.SysJobLogMapper;
import com.zy.system.domain.SysJobLog;
import com.zy.system.service.ISysJobLogService;
import com.zy.common.support.Convert;

/**
 * 定时任务调度日志 服务层实现
 * 
 * @author zy
 * @date 2018-12-19
 */
@Service
public class SysJobLogServiceImpl implements ISysJobLogService 
{
	@Autowired
	private SysJobLogMapper sysJobLogMapper;

	/**
     * 查询定时任务调度日志信息
     * 
     * @param jobLogId 定时任务调度日志ID
     * @return 定时任务调度日志信息
     */
    @Override
	public SysJobLog selectSysJobLogById(Integer jobLogId)
	{
	    return sysJobLogMapper.selectSysJobLogById(jobLogId);
	}
	
	/**
     * 查询定时任务调度日志列表
     * 
     * @param sysJobLog 定时任务调度日志信息
     * @return 定时任务调度日志集合
     */
	@Override
	public List<SysJobLog> selectSysJobLogList(SysJobLog sysJobLog)
	{
	    return sysJobLogMapper.selectSysJobLogList(sysJobLog);
	}
	
    /**
     * 新增定时任务调度日志
     * 
     * @param sysJobLog 定时任务调度日志信息
     * @return 结果
     */
	@Override
	public int insertSysJobLog(SysJobLog sysJobLog)
	{
	    return sysJobLogMapper.insertSysJobLog(sysJobLog);
	}
	
	/**
     * 修改定时任务调度日志
     * 
     * @param sysJobLog 定时任务调度日志信息
     * @return 结果
     */
	@Override
	public int updateSysJobLog(SysJobLog sysJobLog)
	{
	    return sysJobLogMapper.updateSysJobLog(sysJobLog);
	}

	/**
     * 删除定时任务调度日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSysJobLogByIds(String ids)
	{
		return sysJobLogMapper.deleteSysJobLogByIds(Convert.toStrArray(ids));
	}
	
}
